/*
 * FIFO.h
 *
 *  Created on: 2012-6-6
 *      Author: Administrator
 */

#ifndef FIFO_H_
#define FIFO_H_
#include<deque>
#include<iostream>
using namespace std;
class FIFO {
public:
	FIFO(int);
	void access(int);

	int getTimecost() const {
		return timecost;
	}
private:
	int size;
	int timecost;
	deque<int> acc;
};

#endif /* FIFO_H_ */
